import Vue from 'vue'
import VideoUrl from '../components/videoUrl.vue'
Vue.component('VideoUrl', VideoUrl)
export function allDialogForm() {
  return [
    {
      label: '影片',
      prop: 'film_id',
      value: this.$route.query.name,
      disabled: true,
    },
    {
      label: '集名称',
      prop: 'episode_no',
    },

    {
      type: 'number',
      label: '集单价',
      prop: 'coins',
    },
    {
      filterable: true,
      type: 'select',
      label: '过期时间',
      prop: 'valid_duration',
      dicData: this.bonusOption,
    },
    {
      type: 'number',
      label: '点赞初始值',
      prop: 'default_like',
    },
    {
      type: 'number',
      label: '收藏初始值',
      prop: 'default_favorite',
    },
    {
      label: '视频链接',
      prop: 'url',
      component: VideoUrl,
      params: {},
    },
  ]
}
